#encoding=utf-8
'''
Created on 6 Nov 2012

@author: JoséJoão
'''
from tree import Tree
from node import Node


tree = Tree()
tree.create_node("A","a")  # root node
tree.create_node("S", "s",parent = "a")
tree.create_node("Z", "z",parent = "a")
tree.create_node("A", "a1",parent = "s")
tree.create_node("T", "t", "a")

tree.create_node("R", "r",parent = "s")
tree.create_node("O", "o",parent = "s")
tree.create_node("F", "f",parent = "s")
tree.create_node("A", "a2",parent = "z")
tree.create_node("O", "o1",parent = "z")
tree.create_node("A", "a3",parent = "t")
tree.create_node("L", "l",parent = "t")
tree.create_node("S", "s1",parent="a1")
tree.create_node("Z", "z1",parent="a1")
tree.create_node("T", "t1",parent="a1")

tree.create_node("P", "p",parent="r")
tree.create_node("S", "s2",parent="r")
tree.create_node("C", "c",parent="r")
tree.show()